Strict
Import mojo


Class TMusic
	
	Field path:String = "musics/"

	Method New()
		
	End Method
	
	Method PlayStream:Void(file:String, loop_flag:Int=1)
		#if TARGET="flash"	or TARGET="ios"
			PlayMusic(path + file +".mp3",loop_flag)
		#else If TARGET="android"
			PlayMusic(path + file +".ogg",loop_flag)
		#else
			PlayMusic(path + file +".wav",loop_flag)
		#endif
		
	End
	
End Class
